package book_management.operation.impl;

import book_management.book.BookList;
import book_management.operation.IOperation;

//借阅书籍操作
public class BorrowOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("请输入你要借阅的书籍名称：");
        String nameBook = scanner.nextLine();
        if(bookList.contains(nameBook)){
            bookList.BorrowBook(nameBook);
            System.out.println("借阅成功~");
        }else{
            System.out.println("没有这本书~");
        }
    }
}
